<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head profile="http://dublincore.org/documents/2008/08/04/dc-html/">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="robots" content="index,follow">
    <meta name="creator" content="rfcmarkup version 1.101">
    <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
<meta name="DC.Identifier" content="urn:ietf:id:pantos-http-live-streaming">
<meta name="DC.Description.Abstract" content="This document describes a protocol for transferring unbounded streams">
<meta name="DC.Creator" content="Roger Pantos &lt;http-live-streaming-review@group.apple.com&gt;">
<meta name="DC.Date.Issued" content="2012-10-15">
<meta name="DC.Title" content="HTTP Live Streaming">

    <link rel="icon" href="http://tools.ietf.org/images/id.png" type="image/png">
    <link rel="shortcut icon" href="http://tools.ietf.org/images/id.png" type="image/png">
    <title>draft-pantos-http-live-streaming-10 - HTTP Live Streaming</title>
    
    
    <style type="text/css">
	body {
	    margin: 0px 8px;
            font-size: 1em;
	}
        h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	    font-weight: bold;
            line-height: 0pt;
            display: inline;
            white-space: pre;
            font-family: monospace;
            font-size: 1em;
	    font-weight: bold;
        }
        pre {
            font-size: 1em;
            margin-top: 0px;
            margin-bottom: 0px;
        }
	.pre {
	    white-space: pre;
	    font-family: monospace;
	}
	.header{
	    font-weight: bold;
	}
        .newpage {
            page-break-before: always;
        }
        .invisible {
            text-decoration: none;
            color: white;
        }
        a.selflink {
          color: black;
          text-decoration: none;
        }
        @media print {
            body {
                font-family: monospace;
                font-size: 10.5pt;
            }
            h1, h2, h3, h4, h5, h6 {
                font-size: 1em;
            }
        
            a:link, a:visited {
                color: inherit;
                text-decoration: none;
            }
            .noprint {
                display: none;
            }
        }
	@media screen {
	    .grey, .grey a:link, .grey a:visited {
		color: #777;
	    }
            .docinfo {
                background-color: #EEE;
            }
            .top {
                border-top: 7px solid #EEE;
            }
            .bgwhite  { background-color: white; }
            .bgred    { background-color: #F44; }
            .bggrey   { background-color: #666; }
            .bgbrown  { background-color: #840; }            
            .bgorange { background-color: #FA0; }
            .bgyellow { background-color: #EE0; }
            .bgmagenta{ background-color: #F4F; }
            .bgblue   { background-color: #66F; }
            .bgcyan   { background-color: #4DD; }
            .bggreen  { background-color: #4F4; }

            .legend   { font-size: 90%; }
            .cplate   { font-size: 70%; border: solid grey 1px; }
	}
    </style>
    <!--[if IE]>
    <style>
    body {
       font-size: 13px;
       margin: 10px 10px;
    }
    </style>
    <![endif]-->

    <script type="text/javascript"><!--
    function addHeaderTags() {
	var spans = document.getElementsByTagName("span");
	for (var i=0; i < spans.length; i++) {
	    var elem = spans[i];
	    if (elem) {
		var level = elem.getAttribute("class");
                if (level == "h1" || level == "h2" || level == "h3" || level == "h4" || level == "h5" || level == "h6") {
                    elem.innerHTML = "<"+level+">"+elem.innerHTML+"</"+level+">";		
                }
	    }
	}
    }
    var legend_html = "Colour legend:<br />      <table>         <tr><td>Unknown:</td>          <td><span class='cplate bgwhite'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Draft:</td>            <td><span class='cplate bgred'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Informational:</td>    <td><span class='cplate bgorange'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Experimental:</td>     <td><span class='cplate bgyellow'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Best Common Practice:</td><td><span class='cplate bgmagenta'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Proposed Standard:</td><td><span class='cplate bgblue'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Draft Standard:</td>   <td><span class='cplate bgcyan'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Standard:</td>         <td><span class='cplate bggreen'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Historic:</td>         <td><span class='cplate bggrey'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>         <tr><td>Obsolete:</td>         <td><span class='cplate bgbrown'>&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>     </table>";
    function showElem(id) {
        var elem = document.getElementById(id);
        elem.innerHTML = eval(id+"_html");
        elem.style.visibility='visible';
    }
    function hideElem(id) {
        var elem = document.getElementById(id);
        elem.style.visibility='hidden';        
        elem.innerHTML = "";
    }
    // -->
    </script>
</head>
<body onload="addHeaderTags()">
   <div style="height: 13px;">
      <div onmouseover="this.style.cursor='pointer';" onclick="showElem('legend');" onmouseout="hideElem('legend')" style="height: 6px; position: absolute;" class="pre noprint docinfo bgred" title="Click for colour legend.">                                                                        </div>
      <div id="legend" class="docinfo noprint pre legend" style="position:absolute; top: 4px; left: 4ex; visibility:hidden; background-color: white; padding: 4px 9px 5px 7px; border: solid #345 1px; " onmouseover="showElem('legend');" onmouseout="hideElem('legend');">
      </div>
   </div>
<span class="pre noprint docinfo top">[<a href="http://tools.ietf.org/html/" title="Document search and retrieval page">Docs</a>] [<a href="http://tools.ietf.org/id/draft-pantos-http-live-streaming-10.txt" title="Plaintext version of this document">txt</a>|<a href="http://tools.ietf.org/pdf/draft-pantos-http-live-streaming-10.txt" title="PDF version of this document">pdf</a>] [<a href="https://datatracker.ietf.org/doc/draft-pantos-http-live-streaming" title="IESG Datatracker information for this document">Tracker</a>] [<a href="mailto:draft-pantos-http-live-streaming@tools.ietf.org?subject=draft-pantos-http-live-streaming%20" title="Send email to the document authors">Email</a>] [<a href="http://tools.ietf.org/rfcdiff?difftype=--hwdiff&amp;url2=draft-pantos-http-live-streaming-10.txt" title="Inline diff (wdiff)">Diff1</a>] [<a href="http://tools.ietf.org/rfcdiff?url2=draft-pantos-http-live-streaming-10.txt" title="Side-by-side diff">Diff2</a>] [<a href="http://tools.ietf.org/idnits?url=http://tools.ietf.org/id/draft-pantos-http-live-streaming-10.txt" title="Run an idnits check of this document">Nits</a>] [<a href="https://datatracker.ietf.org/ipr/search/?option=document_search&amp;document_search=draft-pantos-http-live-streaming" title="IPR disclosures related to this document">IPR</a>]         </span><br>
<span class="pre noprint docinfo">                                                                        </span><br>
<span class="pre noprint docinfo">Versions: <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-00">00</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-01">01</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-02">02</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-03">03</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-04">04</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-05">05</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-06">06</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-07">07</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-08">08</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-09">09</a> <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-10">10</a>                              </span><br>
<span class="pre noprint docinfo">                                                                        </span><br>
<pre>Informational                                             R. Pantos, Ed.
Internet-Draft                                                    W. May
Intended status: Informational                                Apple Inc.
Expires: April 18, 2013                                 October 15, 2012


                          <span class="h1"><h1>HTTP Live Streaming</h1></span>
                  <span class="h1"><h1>draft-pantos-http-live-streaming-10</h1></span>

Abstract

   This document describes a protocol for transferring unbounded streams
   of multimedia data.  It specifies the data format of the files and
   the actions to be taken by the server (sender) and the clients
   (receivers) of the streams.  It describes version 5 of this protocol.

Status of this Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of <a href="http://tools.ietf.org/html/bcp78">BCP 78</a> and <a href="http://tools.ietf.org/html/bcp79">BCP 79</a>.  This document may not be modified,
   and derivative works of it may not be created, and it may not be
   published except as an Internet-Draft.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at <a href="http://datatracker.ietf.org/drafts/current/">http://datatracker.ietf.org/drafts/current/</a>.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on April 18, 2013.

Copyright Notice

   Copyright (c) 2012 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to <a href="http://tools.ietf.org/html/bcp78">BCP 78</a> and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.

   This Informational Internet Draft is submitted as an RFC Editor



<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 1]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-2" id="page-2" href="#page-2" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   Contribution and/or non-IETF Document (not as a Contribution, IETF
   Contribution, nor IETF Document) in accordance with <a href="http://tools.ietf.org/html/bcp78">BCP 78</a> and <a href="http://tools.ietf.org/html/bcp79">BCP</a>
   <a href="http://tools.ietf.org/html/bcp79">79</a>.


Table of Contents

   <a href="#section-1">1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-4">4</a>
   <a href="#section-2">2</a>.  Summary  . . . . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-4">4</a>
   <a href="#section-3">3</a>.  The Playlist file  . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-4">4</a>
     <a href="#section-3.1">3.1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-4">4</a>
     <a href="#section-3.2">3.2</a>.  Attribute Lists  . . . . . . . . . . . . . . . . . . . . .  <a href="#page-5">5</a>
     <a href="#section-3.3">3.3</a>.  Standard Tags  . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-6">6</a>
       <a href="#section-3.3.1">3.3.1</a>.  EXTM3U . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-6">6</a>
       <a href="#section-3.3.2">3.3.2</a>.  EXTINF . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-6">6</a>
     <a href="#section-3.4">3.4</a>.  New Tags . . . . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-7">7</a>
       <a href="#section-3.4.1">3.4.1</a>.  EXT-X-BYTERANGE  . . . . . . . . . . . . . . . . . . .  <a href="#page-7">7</a>
       <a href="#section-3.4.2">3.4.2</a>.  EXT-X-TARGETDURATION . . . . . . . . . . . . . . . . .  <a href="#page-7">7</a>
       <a href="#section-3.4.3">3.4.3</a>.  EXT-X-MEDIA-SEQUENCE . . . . . . . . . . . . . . . . .  <a href="#page-8">8</a>
       <a href="#section-3.4.4">3.4.4</a>.  EXT-X-KEY  . . . . . . . . . . . . . . . . . . . . . .  <a href="#page-8">8</a>
       <a href="#section-3.4.5">3.4.5</a>.  EXT-X-PROGRAM-DATE-TIME  . . . . . . . . . . . . . . . <a href="#page-10">10</a>
       <a href="#section-3.4.6">3.4.6</a>.  EXT-X-ALLOW-CACHE  . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
       <a href="#section-3.4.7">3.4.7</a>.  EXT-X-PLAYLIST-TYPE  . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
       <a href="#section-3.4.8">3.4.8</a>.  EXT-X-ENDLIST  . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
       <a href="#section-3.4.9">3.4.9</a>.  EXT-X-MEDIA  . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
         <a href="#section-3.4.9.1">3.4.9.1</a>.  Rendition Groups . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
       <a href="#section-3.4.10">3.4.10</a>. EXT-X-STREAM-INF . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
         <a href="#section-3.4.10.1">3.4.10.1</a>. Alternative Renditions . . . . . . . . . . . . . . <a href="#page-15">15</a>
       <a href="#section-3.4.11">3.4.11</a>. EXT-X-DISCONTINUITY  . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
       <a href="#section-3.4.12">3.4.12</a>. EXT-X-I-FRAMES-ONLY  . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
       <a href="#section-3.4.13">3.4.13</a>. EXT-X-MAP  . . . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
       <a href="#section-3.4.14">3.4.14</a>. EXT-X-I-FRAME-STREAM-INF . . . . . . . . . . . . . . . <a href="#page-17">17</a>
       <a href="#section-3.4.15">3.4.15</a>. EXT-X-VERSION  . . . . . . . . . . . . . . . . . . . . <a href="#page-18">18</a>
   <a href="#section-4">4</a>.  Media segments . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-19">19</a>
   <a href="#section-5">5</a>.  Key files  . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
     <a href="#section-5.1">5.1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
     <a href="#section-5.2">5.2</a>.  IV for [<a href="#ref-AES_128" title="&quot;Advanced Encryption Standard (AES), FIPS PUB 197&quot;">AES_128</a>] . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
   <a href="#section-6">6</a>.  Client/Server Actions  . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
     <a href="#section-6.1">6.1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
     <a href="#section-6.2">6.2</a>.  Server Process . . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
       <a href="#section-6.2.1">6.2.1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
       <a href="#section-6.2.2">6.2.2</a>.  Sliding Window Playlists . . . . . . . . . . . . . . . <a href="#page-23">23</a>
       <a href="#section-6.2.3">6.2.3</a>.  Encrypting media segments  . . . . . . . . . . . . . . <a href="#page-23">23</a>
       <a href="#section-6.2.4">6.2.4</a>.  Providing variant streams  . . . . . . . . . . . . . . <a href="#page-24">24</a>
     <a href="#section-6.3">6.3</a>.  Client Process . . . . . . . . . . . . . . . . . . . . . . <a href="#page-25">25</a>
       <a href="#section-6.3.1">6.3.1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . <a href="#page-25">25</a>
       <a href="#section-6.3.2">6.3.2</a>.  Loading the Playlist file  . . . . . . . . . . . . . . <a href="#page-25">25</a>



<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 2]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-3" id="page-3" href="#page-3" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


       <a href="#section-6.3.3">6.3.3</a>.  Playing the Playlist file  . . . . . . . . . . . . . . <a href="#page-26">26</a>
       <a href="#section-6.3.4">6.3.4</a>.  Reloading the Playlist file  . . . . . . . . . . . . . <a href="#page-26">26</a>
       <a href="#section-6.3.5">6.3.5</a>.  Determining the next segment to load . . . . . . . . . <a href="#page-27">27</a>
       <a href="#section-6.3.6">6.3.6</a>.  Decrypting encrypted media segments  . . . . . . . . . <a href="#page-28">28</a>
   <a href="#section-7">7</a>.  Protocol version compatibility . . . . . . . . . . . . . . . . <a href="#page-28">28</a>
   <a href="#section-8">8</a>.  Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-29">29</a>
     <a href="#section-8.1">8.1</a>.  Introduction . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-29">29</a>
     <a href="#section-8.2">8.2</a>.  Simple Playlist file . . . . . . . . . . . . . . . . . . . <a href="#page-29">29</a>
     <a href="#section-8.3">8.3</a>.  Sliding Window Playlist, using HTTPS . . . . . . . . . . . <a href="#page-30">30</a>
     <a href="#section-8.4">8.4</a>.  Playlist file with encrypted media segments  . . . . . . . <a href="#page-30">30</a>
     <a href="#section-8.5">8.5</a>.  Variant Playlist file  . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
     <a href="#section-8.6">8.6</a>.  Variant Playlist with I-Frames . . . . . . . . . . . . . . <a href="#page-31">31</a>
     <a href="#section-8.7">8.7</a>.  Variant Playlist with Alternative audio  . . . . . . . . . <a href="#page-31">31</a>
     <a href="#section-8.8">8.8</a>.  Variant Playlist with Alternative video  . . . . . . . . . <a href="#page-31">31</a>
   <a href="#section-9">9</a>.  Contributors . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
   <a href="#section-10">10</a>. IANA Considerations  . . . . . . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
   <a href="#section-11">11</a>. Security Considerations  . . . . . . . . . . . . . . . . . . . <a href="#page-33">33</a>
   <a href="#section-12">12</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-34">34</a>
     <a href="#section-12.1">12.1</a>. Normative References . . . . . . . . . . . . . . . . . . . <a href="#page-34">34</a>
     <a href="#section-12.2">12.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-36">36</a>
   Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-36">36</a>






























<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 3]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-4" id="page-4" href="#page-4" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h2"><h2><a class="selflink" name="section-1" href="#section-1">1</a>.  Introduction</h2></span>

   This document describes a protocol for transferring unbounded streams
   of multimedia data.  The protocol supports the encryption of media
   data and the provision of alternate versions (e.g. bitrates) of a
   stream.  Media data can be transferred soon after it is created,
   allowing it to be played in near real-time.  Data is usually carried
   over HTTP [<a href="http://tools.ietf.org/html/rfc2616" title="&quot;Hypertext Transfer Protocol -- HTTP/1.1&quot;">RFC2616</a>].

   External references that describe related standards such as HTTP are
   listed in <a href="#section-11">Section 11</a>.


<span class="h2"><h2><a class="selflink" name="section-2" href="#section-2">2</a>.  Summary</h2></span>

   A multimedia presentation is specified by a URI [<a href="http://tools.ietf.org/html/rfc3986" title="&quot;Uniform Resource Identifier (URI): Generic Syntax&quot;">RFC3986</a>] to a
   Playlist file, which is an ordered list of media URIs and
   informational tags.  The URIs and their associated tags specify a
   series of media segments.

   To play the stream, the client first obtains the Playlist file and
   then obtains and plays each media segment in the Playlist.  It
   reloads the Playlist file as described in this document to discover
   additional segments.

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in <a href="http://tools.ietf.org/html/rfc2119">RFC 2119</a> [<a href="http://tools.ietf.org/html/rfc2119" title="&quot;Key words for use in RFCs to Indicate Requirement Levels&quot;">RFC2119</a>].


<span class="h2"><h2><a class="selflink" name="section-3" href="#section-3">3</a>.  The Playlist file</h2></span>

<span class="h3"><h3><a class="selflink" name="section-3.1" href="#section-3.1">3.1</a>.  Introduction</h3></span>

   Playlists MUST be Extended M3U Playlist files [<a href="#ref-M3U" title="&quot;The M3U Playlist format, originally invented for the Winamp media player&quot;">M3U</a>].  This document
   extends the M3U file format further by defining additional tags.

   An M3U Playlist is a text file that consists of individual lines.
   Lines are terminated by either a single LF character or a CR
   character followed by an LF character.  Each line is a URI, blank, or
   starts with the character '#'.  Blank lines are ignored.  White space
   MUST NOT be present, except for elements in which it is explicitly
   specified.

   A URI line identifies a media segment or a variant Playlist file (see
   <a href="#section-3.4.10">Section 3.4.10</a>).  Each media segment is specified by a media URI and
   the tags that apply to it.




<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 4]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-5" id="page-5" href="#page-5" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   Lines that start with the character '#' are either comments or tags.

   Tags begin with #EXT.  All other lines that begin with '#' are
   comments and SHOULD be ignored.

   A URI in a Playlist, whether it is a URI line or part of a tag, MAY
   be relative.  Relative URIs MUST be resolved against the URI of the
   Playlist file that contains it.

   The duration of a Playlist file is the sum of the durations of the
   media segments within it.

   Playlist files whose names end in .m3u8 and/or have the HTTP Content-
   Type "application/vnd.apple.mpegurl" are encoded in UTF-8 [<a href="http://tools.ietf.org/html/rfc3629" title="&quot;UTF-8, a transformation format of ISO 10646&quot;">RFC3629</a>].
   Files whose names end with .m3u and/or have the HTTP Content-Type
   [<a href="http://tools.ietf.org/html/rfc2616" title="&quot;Hypertext Transfer Protocol -- HTTP/1.1&quot;">RFC2616</a>] "audio/mpegurl" are encoded in US-ASCII [<a href="#ref-US_ASCII">US_ASCII</a>].

   Playlist files MUST have names that end in .m3u8 and/or have the
   Content-Type "application/vnd.apple.mpegurl" (if transferred over
   HTTP), or have names that end in .m3u and/or have the HTTP Content-
   Type type "audio/mpegurl" (for compatibility).

<span class="h3"><h3><a class="selflink" name="section-3.2" href="#section-3.2">3.2</a>.  Attribute Lists</h3></span>

   Certain extended M3U tags have values which are Attribute Lists.  An
   Attribute List is a comma-separated list of attribute/value pairs
   with no whitespace.

   An attribute/value pair has the following syntax:

   AttributeName=AttributeValue

   An AttributeName is an unquoted string containing characters from the
   set [A..Z] and '-'.

   An AttributeValue is one of the following:

   o  decimal-integer: an unquoted string of characters from the set
      [0..9] expressing an integer in base-10 arithmetic.

   o  hexadecimal-integer: an unquoted string of characters from the set
      [0..9] and [A..F] that is prefixed with 0x or 0X and which
      expresses an integer in base-16 arithmetic.

   o  decimal-floating-point: an unquoted string of characters from the
      set [0..9] and '.' which expresses a floating-point number in
      decimal positional notation.




<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 5]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-6" id="page-6" href="#page-6" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   o  quoted-string: a string of characters within a pair of double-
      quotes ("), including Uniform Type Identifiers [<a href="#ref-UTI" title="&quot;Uniform Type Identifier&quot;">UTI</a>].  The set of
      characters allowed in the string and any rules for escaping
      special characters are specified by the Attribute definition, but
      any double-quote (") character and any carriage-return or linefeed
      will always be replaced by an escape sequence.

   o  enumerated-string: an unquoted character string from a set which
      is explicitly defined by the Attribute.  An enumerated-string will
      never contain double-quotes ("), commas (,), or whitespace.

   o  decimal-resolution: two decimal-integers separated by the "x"
      character.  The first integer is a horizontal pixel dimension
      (width); the second is a vertical pixel dimension (height).

   The type of the AttributeValue for a given AttributeName is specified
   by the Attribute definition.

   A given AttributeName MUST NOT appear more than once in a given
   Attribute List.

   An Attribute/value pair with an unrecognized AttributeName MUST be
   ignored by the client.

   Any tag containing an attribute/value pair of type enumerated-string
   whose AttributeName is recognized but whose AttributeValue is not
   recognized MUST be ignored by the client.

<span class="h3"><h3><a class="selflink" name="section-3.3" href="#section-3.3">3.3</a>.  Standard Tags</h3></span>

<span class="h4"><h4><a class="selflink" name="section-3.3.1" href="#section-3.3.1">3.3.1</a>.  EXTM3U</h4></span>

   An Extended M3U file is distinguished from a basic M3U file by its
   first line, which MUST be the tag #EXTM3U.

<span class="h4"><h4><a class="selflink" name="section-3.3.2" href="#section-3.3.2">3.3.2</a>.  EXTINF</h4></span>

   The EXTINF tag specifies the duration of a media segment.  It applies
   only to the media segment that follows it.  Each media segment MUST
   be preceded by an EXTINF tag.  Its format is:

   #EXTINF:&lt;duration&gt;,&lt;title&gt;

   "duration" is an integer or floating-point number in decimal
   positional notation that specifies the duration of the media segment
   in seconds.  Durations that are reported as integers SHOULD be
   rounded to the nearest integer.  Durations MUST be integers if the
   protocol version of the Playlist file is less than 3.  The remainder



<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 6]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-7" id="page-7" href="#page-7" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   of the line following the comma is an optional human-readable
   informative title of the media segment.

<span class="h3"><h3><a class="selflink" name="section-3.4" href="#section-3.4">3.4</a>.  New Tags</h3></span>

   This document defines the following new tags: EXT-X-BYTERANGE, EXT-X-
   TARGETDURATION, EXT-X-MEDIA-SEQUENCE, EXT-X-KEY, EXT-X-PROGRAM-DATE-
   TIME, EXT-X-ALLOW-CACHE, EXT-X-PLAYLIST-TYPE, EXT-X-STREAM-INF, EXT-
   X-I-FRAME-STREAM-INF, EXT-X-I-FRAMES-ONLY, EXT-X-MEDIA, EXT-X-
   ENDLIST, EXT-X-DISCONTINUITY, and EXT-X-VERSION.

<span class="h4"><h4><a class="selflink" name="section-3.4.1" href="#section-3.4.1">3.4.1</a>.  EXT-X-BYTERANGE</h4></span>

   The EXT-X-BYTERANGE tag indicates that a media segment is a sub-range
   of the resource identified by its media URI.  It applies only to the
   next media URI that follows it in the Playlist.  Its format is:

   #EXT-X-BYTERANGE:&lt;n&gt;[@o]

   where n is a decimal-integer indicating the length of the sub-range
   in bytes.  If present, o is a decimal-integer indicating the start of
   the sub-range, as a byte offset from the beginning of the resource.
   If o is not present, the sub-range begins at the next byte following
   the sub-range of the previous media segment.

   If o is not present, a previous media segment MUST appear in the
   Playlist file and MUST be a sub-range of the same media resource.

   A media URI with no EXT-X-BYTERANGE tag applied to it specifies a
   media segment that consists of the entire resource.

   The EXT-X-BYTERANGE tag appeared in version 4 of the protocol.

<span class="h4"><h4><a class="selflink" name="section-3.4.2" href="#section-3.4.2">3.4.2</a>.  EXT-X-TARGETDURATION</h4></span>

   The EXT-X-TARGETDURATION tag specifies the maximum media segment
   duration.  The EXTINF duration of each media segment in the Playlist
   file MUST be less than or equal to the target duration.  This tag
   MUST appear once in the Playlist file.  It applies to the entire
   Playlist file.  Its format is:

   #EXT-X-TARGETDURATION:&lt;s&gt;

   where s is an integer indicating the target duration in seconds.







<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 7]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-8" id="page-8" href="#page-8" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h4"><h4><a class="selflink" name="section-3.4.3" href="#section-3.4.3">3.4.3</a>.  EXT-X-MEDIA-SEQUENCE</h4></span>

   Each media segment in a Playlist has a unique integer sequence
   number.  The sequence number of a segment is equal to the sequence
   number of the segment that preceded it plus one.  The EXT-X-MEDIA-
   SEQUENCE tag indicates the sequence number of the first segment that
   appears in a Playlist file.  Its format is:

   #EXT-X-MEDIA-SEQUENCE:&lt;number&gt;

   A Playlist file MUST NOT contain more than one EXT-X-MEDIA-SEQUENCE
   tag.  If the Playlist file does not contain an EXT-X-MEDIA-SEQUENCE
   tag then the sequence number of the first segment in the playlist
   SHALL be considered to be 0.  A client MUST NOT assume that segments
   with the same sequence number in different variants or renditions
   contain matching content.

   A media URI is not required to contain its sequence number.

   See <a href="#section-6.3.2">Section 6.3.2</a> and <a href="#section-6.3.5">Section 6.3.5</a> for information on handling the
   EXT-X-MEDIA-SEQUENCE tag.

<span class="h4"><h4><a class="selflink" name="section-3.4.4" href="#section-3.4.4">3.4.4</a>.  EXT-X-KEY</h4></span>

   Media segments MAY be encrypted.  The EXT-X-KEY tag specifies how to
   decrypt them.  It applies to every media segment that appears between
   it and the next EXT-X-KEY tag in the Playlist file with the same
   KEYFORMAT attribute (or the end of the Playlist file).  Two or more
   EXT-X-KEY tags with different KEYFORMAT attributes MAY apply to the
   same media segment, in which case they MUST resolve to the same key.
   Its format is:

   #EXT-X-KEY:&lt;attribute-list&gt;

   The following attributes are defined:

   METHOD

   The value is an enumerated-string that specifies the encryption
   method.  This attribute is mandatory.

   The methods defined are: NONE, AES-128, and SAMPLE-AES.

   An encryption method of NONE means that media segments are not
   encrypted.  If the encryption method is NONE, the following
   attributes MUST NOT be present: URI; IV; KEYFORMAT;
   KEYFORMATVERSIONS.




<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 8]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-9" id="page-9" href="#page-9" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   An encryption method of AES-128 means that media segments are
   completely encrypted using the Advanced Encryption Standard [<a href="#ref-AES_128" title="&quot;Advanced Encryption Standard (AES), FIPS PUB 197&quot;">AES_128</a>]
   with a 128-bit key and PKCS7 padding [<a href="http://tools.ietf.org/html/rfc5652" title="&quot;Cryptographic Message Syntax (CMS)&quot;">RFC5652</a>].  If the encryption
   method is AES-128, the URI attribute MUST be present.  The IV
   attribute MAY be present; see <a href="#section-5.2">Section 5.2</a>.

   An encryption method of SAMPLE-AES means that the media segments
   contain elementary streams of audio, video, or other samples that are
   encrypted using the Advanced Encryption Standard [<a href="#ref-AES_128" title="&quot;Advanced Encryption Standard (AES), FIPS PUB 197&quot;">AES_128</a>].  How an
   elementary stream is encrypted depends on the media encoding.  The
   encryption format for H.264 [<a href="#ref-H_264" title="&quot;Advanced video coding for generic audiovisual services&quot;">H_264</a>], AAC [<a href="#ref-ISO_14496">ISO_14496</a>] and AC-3 [<a href="#ref-AC_3" title="&quot;ATSC Standard: A/52:2010: Digital Audio Compression (AC-3) (E-AC-3) Standard&quot;">AC_3</a>]
   elementary streams is described by [<a href="#ref-SampleEnc">SampleEnc</a>].  The IV attribute MAY
   be present; see <a href="#section-5.2">Section 5.2</a>.

   URI

   The value is a quoted-string containing a URI [<a href="http://tools.ietf.org/html/rfc3986" title="&quot;Uniform Resource Identifier (URI): Generic Syntax&quot;">RFC3986</a>] that
   specifies how to obtain the key.  This attribute is mandatory unless
   the METHOD is NONE.

   IV

   The value is a hexadecimal-integer that specifies the Initialization
   Vector to be used with the key.  The IV attribute appeared in
   protocol version 2.

   KEYFORMAT

   The value is a quoted-string that specifies how the key is
   represented in the resource identified by the URI; see <a href="#section-5">Section 5</a> for
   more detail.  This attribute is optional; its absence indicates, an
   implicit value of "identity".  The KEYFORMAT attribute appeared in
   protocol version 5.

   KEYFORMATVERSIONS

   The value is a quoted-string containing one or more positive integers
   separated by the "/" character (for example, "1/3").  If more than
   one version of a particular KEYFORMAT is defined, this attribute can
   be used to indicate which version(s) this instance complies with.
   This attribute is optional; if it is not present, its value is
   considered to be "1".  The KEYFORMATVERSIONS attribute appeared in
   protocol version 5.

   If the Playlist file does not contain an EXT-X-KEY tag then media
   segments are not encrypted.

   See <a href="#section-5">Section 5</a> for the format of the key file, and <a href="#section-5.2">Section 5.2</a>,



<span class="grey">Pantos &amp; May             Expires April 18, 2013                 [Page 9]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-10" id="page-10" href="#page-10" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   <a href="#section-6.2.3">Section 6.2.3</a> and <a href="#section-6.3.6">Section 6.3.6</a> for additional information on media
   segment encryption.

<span class="h4"><h4><a class="selflink" name="section-3.4.5" href="#section-3.4.5">3.4.5</a>.  EXT-X-PROGRAM-DATE-TIME</h4></span>

   The EXT-X-PROGRAM-DATE-TIME tag associates the first sample of a
   media segment with an absolute date and/or time.  It applies only to
   the next media segment.

   The date/time representation is ISO/IEC 8601:2004 [<a href="#ref-ISO_8601">ISO_8601</a>] and
   SHOULD indicate a time zone:

   #EXT-X-PROGRAM-DATE-TIME:&lt;YYYY-MM-DDThh:mm:ssZ&gt;

   For example:

   #EXT-X-PROGRAM-DATE-TIME:2010-02-19T14:54:23.031+08:00

   See <a href="#section-6.2.1">Section 6.2.1</a> and <a href="#section-6.3.3">Section 6.3.3</a> for more information on the EXT-
   X-PROGRAM-DATE-TIME tag.

<span class="h4"><h4><a class="selflink" name="section-3.4.6" href="#section-3.4.6">3.4.6</a>.  EXT-X-ALLOW-CACHE</h4></span>

   The EXT-X-ALLOW-CACHE tag indicates whether the client MAY or MUST
   NOT cache downloaded media segments for later replay.  It MAY occur
   anywhere in the Playlist file; it MUST NOT occur more than once.  The
   EXT-X-ALLOW-CACHE tag applies to all segments in the playlist.  Its
   format is:

   #EXT-X-ALLOW-CACHE:&lt;YES|NO&gt;

   See <a href="#section-6.3.3">Section 6.3.3</a> for more information on the EXT-X-ALLOW-CACHE tag.

<span class="h4"><h4><a class="selflink" name="section-3.4.7" href="#section-3.4.7">3.4.7</a>.  EXT-X-PLAYLIST-TYPE</h4></span>

   The EXT-X-PLAYLIST-TYPE tag provides mutability information about the
   Playlist file.  It applies to the entire Playlist file.  It is
   optional.  Its format is:

   #EXT-X-PLAYLIST-TYPE:&lt;EVENT|VOD&gt;

   <a href="#section-6.2.1">Section 6.2.1</a> defines the implications of the EXT-X-PLAYLIST-TYPE
   tag.








<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 10]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-11" id="page-11" href="#page-11" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h4"><h4><a class="selflink" name="section-3.4.8" href="#section-3.4.8">3.4.8</a>.  EXT-X-ENDLIST</h4></span>

   The EXT-X-ENDLIST tag indicates that no more media segments will be
   added to the Playlist file.  It MAY occur anywhere in the Playlist
   file; it MUST NOT occur more than once.  Its format is:

   #EXT-X-ENDLIST

<span class="h4"><h4><a class="selflink" name="section-3.4.9" href="#section-3.4.9">3.4.9</a>.  EXT-X-MEDIA</h4></span>

   The EXT-X-MEDIA tag is used to relate Playlists that contain
   alternative renditions of the same content.  For example, three EXT-
   X-MEDIA tags can be used to identify audio-only Playlists that
   contain English, French and Spanish renditions of the same
   presentation.  Or two EXT-X-MEDIA tags can be used to identify video-
   only Playlists that show two different camera angles.

   The EXT-X-MEDIA tag stands alone, in that it does not apply to a
   particular URI in the Playlist.  Its format is:

   #EXT-X-MEDIA:&lt;attribute-list&gt;

   The following attributes are defined:

   URI

   The value is a quoted-string containing a URI that identifies the
   Playlist file.  This attribute is optional; see <a href="#section-3.4.10.1">Section 3.4.10.1</a>.

   TYPE

   The value is enumerated-string; valid strings are AUDIO, VIDEO and
   SUBTITLES.  If the value is AUDIO, the Playlist described by the tag
   MUST contain audio media.  If the value is VIDEO, the Playlist MUST
   contain video media.  If the value is SUBTITLES, the Playlist MUST
   contain subtitle media.

   GROUP-ID

   The value is a quoted-string identifying a mutually-exclusive group
   of renditions.  The presence of this attribute signals membership in
   the group.  See <a href="#section-3.4.9.1">Section 3.4.9.1</a>.

   LANGUAGE

   The value is a quoted-string containing an <a href="http://tools.ietf.org/html/rfc5646">RFC 5646</a> [<a href="http://tools.ietf.org/html/rfc5646" title="&quot;Tags for Identifying Languages&quot;">RFC5646</a>]
   language tag that identifies the primary language used in the
   rendition.  This attribute is optional.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 11]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-12" id="page-12" href="#page-12" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   NAME

   The value is a quoted-string containing a human-readable description
   of the rendition.  If the LANGUAGE attribute is present then this
   description SHOULD be in that language.

   DEFAULT

   The value is an enumerated-string; valid strings are YES and NO.  If
   the value is YES, then the client SHOULD play this rendition of the
   content in the absence of information from the user indicating a
   different choice.  This attribute is optional.  Its absence indicates
   an implicit value of NO.

   AUTOSELECT

   The value is an enumerated-string; valid strings are YES and NO.
   This attribute is optional.  Its absence indicates an implicit value
   of NO.  If the value is YES, then the client MAY choose to play this
   rendition in the absence of explicit user preference because it
   matches the current playback environment, such as chosen system
   language.

   FORCED

   The value is an enumerated-string; valid strings are YES and NO.
   This attribute is optional.  Its absence indicates an implicit value
   of NO.  The FORCED attribute MUST NOT be present unless the TYPE is
   SUBTITLES.

   A value of YES indicates that the rendition contains content which is
   considered essential to play.  When selecting a FORCED rendition, a
   client should choose the one that best matches the current playback
   environment (e.g. language).

   A value of NO indicates that the rendition contains content which is
   intended to be played in response to explicit user request.

   CHARACTERISTICS

   The value is a quoted-string containing one or more Uniform Type
   Identifiers [<a href="#ref-UTI" title="&quot;Uniform Type Identifier&quot;">UTI</a>] separated by comma (,) characters.  This attribute
   is optional.  Each UTI indicates an individual characteristic of the
   rendition.

   A SUBTITLES rendition MAY include the following characteristics:
   "public.accessibility.transcribes-spoken-dialog";
   "public.accessibility.describes-music-and-sound"; "public.easy-to-



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 12]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-13" id="page-13" href="#page-13" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   read" (which indicates that the subtitles have been edited for ease
   of reading).

   An AUDIO rendition MAY include the following characteristics:
   "public.accessibility.describes-video".

   The CHARACTERISTICS attribute MAY include private UTIs.

   The EXT-X-MEDIA tag appeared in version 4 of the protocol.

<span class="h5"><h5><a class="selflink" name="section-3.4.9.1" href="#section-3.4.9.1">3.4.9.1</a>.  Rendition Groups</h5></span>

   A set of EXT-X-MEDIA tags with the same GROUP-ID value forms a group
   of renditions.  Each member of the group MUST represent an
   alternative rendition of the same content.

   All EXT-X-MEDIA tags in a Playlist MUST meet the following
   constraints:

   o  All EXT-X-MEDIA tags in the same group MUST have the same TYPE
      attribute.

   o  All EXT-X-MEDIA tags in the same group MUST have different NAME
      attributes.

   o  A group MUST NOT have more than one member with a DEFAULT
      attribute of YES.

   o  All members of a group whose AUTOSELECT attribute has a value of
      YES MUST have LANGUAGE [<a href="http://tools.ietf.org/html/rfc5646" title="&quot;Tags for Identifying Languages&quot;">RFC5646</a>] attributes with unique values.

   o  All members of a group with TYPE=AUDIO MUST use the same audio
      sample format.

   o  All members of a group with TYPE=VIDEO MUST use the same video
      sample format.

   A Playlist MAY contain multiple groups of the same TYPE in order to
   provide multiple encodings of each rendition.  If it does so, each
   group of the same TYPE SHOULD contain corresponding members with the
   same NAME attribute, LANGUAGE attribute, and rendition.










<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 13]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-14" id="page-14" href="#page-14" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h4"><h4><a class="selflink" name="section-3.4.10" href="#section-3.4.10">3.4.10</a>.  EXT-X-STREAM-INF</h4></span>

   The EXT-X-STREAM-INF tag identifies a media URI as a Playlist file
   containing a multimedia presentation and provides information about
   that presentation.  It applies only to the URI that follows it.  Its
   format is:

   #EXT-X-STREAM-INF:&lt;attribute-list&gt;
   &lt;URI&gt;

   The following attributes are defined:

   BANDWIDTH

   The value is a decimal-integer of bits per second.  It MUST be an
   upper bound of the overall bitrate of each media segment (calculated
   to include container overhead) that appears or will appear in the
   Playlist.

   Every EXT-X-STREAM-INF tag MUST include the BANDWIDTH attribute.

   PROGRAM-ID

   The value is a decimal-integer that uniquely identifies a particular
   presentation within the scope of the Playlist file.

   A Playlist file MAY contain multiple EXT-X-STREAM-INF tags with the
   same PROGRAM-ID to identify different encodings of the same
   presentation.  These variant playlists MAY contain additional EXT-X-
   STREAM-INF tags.

   CODECS

   The value is a quoted-string containing a comma-separated list of
   formats, where each format specifies a media sample type that is
   present in a media segment in the Playlist file.  Valid format
   identifiers are those in the ISO File Format Name Space defined by
   <a href="http://tools.ietf.org/html/rfc6381">RFC 6381</a> [<a href="http://tools.ietf.org/html/rfc6381" title="&quot;The 'Codecs' and 'Profiles' Parameters for &quot;">RFC6381</a>].

   Every EXT-X-STREAM-INF tag SHOULD include a CODECS attribute.

   RESOLUTION

   The value is a decimal-resolution describing the approximate encoded
   horizontal and vertical resolution of video within the presentation.






<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 14]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-15" id="page-15" href="#page-15" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   AUDIO

   The value is a quoted-string.  It MUST match the value of the
   GROUP-ID attribute of an EXT-X-MEDIA tag elsewhere in the Playlist
   whose TYPE attribute is AUDIO.  It indicates the set of audio
   renditions that MAY be used when playing the presentation.  See
   <a href="#section-3.4.10.1">Section 3.4.10.1</a>.

   VIDEO

   The value is a quoted-string.  It MUST match the value of the
   GROUP-ID attribute of an EXT-X-MEDIA tag elsewhere in the Playlist
   whose TYPE attribute is VIDEO.  It indicates the set of video
   renditions that MAY be used when playing the presentation.  See
   <a href="#section-3.4.10.1">Section 3.4.10.1</a>.

   SUBTITLES

   The value is a quoted-string.  It MUST match the value of the
   GROUP-ID attribute of an EXT-X-MEDIA tag elsewhere in the Playlist
   whose TYPE attribute is SUBTITLES.  It indicates the set of subtitle
   renditions that MAY be used when playing the presentation.  See
   <a href="#section-3.4.10.1">Section 3.4.10.1</a>.

<span class="h5"><h5><a class="selflink" name="section-3.4.10.1" href="#section-3.4.10.1">3.4.10.1</a>.  Alternative Renditions</h5></span>

   When an EXT-X-STREAM-INF tag contains an AUDIO, VIDEO, or SUBTITLE
   attribute, it indicates that alternative renditions of the content
   are available for playback of that variant.

   When defining alternative renditions, the following constraints MUST
   be met:

   o  All playable combinations of renditions associated with an EXT-X-
      STREAM-INF tag MUST have an aggregate bandwidth less than or equal
      to the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.

   o  If an EXT-X-STREAM-INF tag contains a RESOLUTION attribute and a
      VIDEO attribute, then every alternative video rendition MUST match
      the value of the RESOLUTION attribute.

   o  Every alternative rendition associated with an EXT-X-STREAM-INF
      tag MUST meet the constraints for a variant stream described in
      <a href="#section-6.2.4">Section 6.2.4</a>.

   The URI attribute of an EXT-X-MEDIA tag is optional.  If it is
   missing, it indicates that the rendition described by the EXT-X-MEDIA
   tag is present in the main Playlist described by the EXT-X-STREAM-INF



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 15]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-16" id="page-16" href="#page-16" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   tag.

   Note that if a client chooses to play renditions of audio and video
   that are not present in the main Playlist described by the EXT-X-
   STREAM-INF tag, or if the client chooses to play an audio rendition
   and the main Playlist is audio-only, then the client MAY ignore the
   main Playlist and its media.

<span class="h4"><h4><a class="selflink" name="section-3.4.11" href="#section-3.4.11">3.4.11</a>.  EXT-X-DISCONTINUITY</h4></span>

   The EXT-X-DISCONTINUITY tag indicates an encoding discontinuity
   between the media segment that follows it and the one that preceded
   it.  The set of characteristics that MAY change is:

   o  file format

   o  number and type of tracks

   o  encoding parameters

   o  encoding sequence

   o  timestamp sequence

   Its format is:

   #EXT-X-DISCONTINUITY

   See <a href="#section-4">Section 4</a>, <a href="#section-6.2.1">Section 6.2.1</a>, and <a href="#section-6.3.3">Section 6.3.3</a> for more information
   about the EXT-X-DISCONTINUITY tag.

<span class="h4"><h4><a class="selflink" name="section-3.4.12" href="#section-3.4.12">3.4.12</a>.  EXT-X-I-FRAMES-ONLY</h4></span>

   The EXT-X-I-FRAMES-ONLY tag indicates that each media segment in the
   Playlist describes a single I-frame.  I-frames (or Intra frames) are
   encoded video frames whose encoding does not depend on any other
   frame.

   The EXT-X-I-FRAMES-ONLY tag applies to the entire Playlist.  Its
   format is:

   #EXT-X-I-FRAMES-ONLY

   In a Playlist with the EXT-X-I-FRAMES-ONLY tag, the media segment
   duration (EXTINF tag value) is the time between the presentation time
   of the I-frame in the media segment and the presentation time of the
   next I-frame in the Playlist, or the end of the presentation if it is
   the last I-frame in the Playlist.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 16]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-17" id="page-17" href="#page-17" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   Media resources containing I-frame segments MUST begin with either a
   Transport Stream PAT/PMT or be accompanied by an EXT-X-MAP tag
   indicating the proper PAT/PMT.  The byte range of an I-frame segment
   with an EXT-X-BYTERANGE tag applied to it (<a href="#section-3.4.1">Section 3.4.1</a>) MUST NOT
   include a PAT/PMT.

   The EXT-X-I-FRAMES-ONLY tag appeared in version 4 of the protocol.

<span class="h4"><h4><a class="selflink" name="section-3.4.13" href="#section-3.4.13">3.4.13</a>.  EXT-X-MAP</h4></span>

   The EXT-X-MAP tag specifies how to obtain the Transport Stream PAT/
   PMT for the applicable media segment.  It applies to every media
   segment that appears after it in the Playlist until the next EXT-X-
   DISCONTINUITY tag, or until the end of the playlist.

   The EXT-X-MAP tag MUST NOT appear unless the Playlist also contains
   the EXT-X-I-FRAMES-ONLY tag.  It is RECOMMENDED that the EXT-X-MAP
   tag only be used for segments whose resource does not start with a
   PAT/PMT.

   Its format is:

   #EXT-X-MAP:&lt;attribute-list&gt;

   The following attributes are defined:

   URI

   The value is a quoted-string containing a URI that identifies a
   resource that contains the Transport Stream PAT/PMT.  This attribute
   is mandatory.

   BYTERANGE

   The value is a quoted-string specifying a byte range into the
   resource identified by the URI attribute.  This range SHOULD contain
   only the Transport Stream PAT/PMT.  The format of the byte range is
   described in <a href="#section-3.4.1">Section 3.4.1</a>.  This attribute is optional; if it is not
   present, the byte range is the entire resource indicated by the URI.

   The EXT-X-MAP tag appeared in version 5 of the protocol.

<span class="h4"><h4><a class="selflink" name="section-3.4.14" href="#section-3.4.14">3.4.14</a>.  EXT-X-I-FRAME-STREAM-INF</h4></span>

   The EXT-X-I-FRAME-STREAM-INF tag identifies a Playlist file
   containing the I-frames of a multimedia presentation.  It stands
   alone, in that it does not apply to a particular URI in the Playlist.
   Its format is:



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 17]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-18" id="page-18" href="#page-18" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   #EXT-X-I-FRAME-STREAM-INF:&lt;attribute-list&gt;

   All attributes defined for the EXT-X-STREAM-INF tag (<a href="#section-3.4.10">Section 3.4.10</a>)
   are also defined for the EXT-X-I-FRAME-STREAM-INF tag, except for the
   AUDIO and SUBTITLES attributes.  In addition, the following attribute
   is defined:

   URI

   The value is a quoted-string containing a URI that identifies the
   I-frame Playlist file.

   Every EXT-X-I-FRAME-STREAM-INF tag MUST include a BANDWIDTH attribute
   and a URI attribute.

   The provisions in <a href="#section-3.4.10.1">Section 3.4.10.1</a> also apply to EXT-X-I-FRAME-
   STREAM-INF tags with a VIDEO attribute.

   A Playlist that specifies alternative VIDEO renditions and I-frame
   Playlists SHOULD include an alternative I-frame VIDEO rendition for
   each regular VIDEO rendition, with the same NAME and LANGUAGE
   attributes.

   The EXT-X-I-FRAME-STREAM-INF tag appeared in version 4 of the
   protocol.  Clients that do not implement protocol version 4 or higher
   MUST ignore it.

<span class="h4"><h4><a class="selflink" name="section-3.4.15" href="#section-3.4.15">3.4.15</a>.  EXT-X-VERSION</h4></span>

   The EXT-X-VERSION tag indicates the compatibility version of the
   Playlist file.  The Playlist file, its associated media, and its
   server MUST comply with all provisions of the most-recent version of
   this document describing the protocol version indicated by the tag
   value.

   The EXT-X-VERSION tag applies to the entire Playlist file.  Its
   format is:

   #EXT-X-VERSION:&lt;n&gt;

   where n is an integer indicating the protocol version.

   A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.  A
   Playlist file that does not contain an EXT-X-VERSION tag MUST comply
   with version 1 of this protocol.






<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 18]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-19" id="page-19" href="#page-19" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h2"><h2><a class="selflink" name="section-4" href="#section-4">4</a>.  Media segments</h2></span>

   Each media URI in a Playlist file specifies a media segment which is
   part of the overall presentation.  If a media URI has an EXT-X-
   BYTERANGE tag applied to it, the segment is a sub-range of the media
   file identified by the URI.  Otherwise, the segment is the entire
   media file.

   Each media segment MUST be formatted as an MPEG-2 Transport Stream
   [<a href="#ref-ISO_13818">ISO_13818</a>], an MPEG audio elementary stream [<a href="#ref-ISO_11172">ISO_11172</a>], or a WebVTT
   [<a href="#ref-WebVTT" title="&quot;WebVTT Standard&quot;">WebVTT</a>] file.

   Transport Stream segments MUST contain a single MPEG-2 Program.
   There SHOULD be a Program Association Table (PAT) and a Program Map
   Table (PMT) at the start of each segment.  A segment that contains
   video SHOULD have at least one key frame and enough information to
   completely initialize a video decoder.

   A Transport Stream or audio elementary stream segment MUST be the
   continuation of the encoded media at the end of the segment with the
   previous sequence number, where values in a continuous series, such
   as timestamps and Continuity Counters, continue uninterrupted -
   unless the media segment was the first ever to appear in the Playlist
   file or has an EXT-X-DISCONTINUITY tag applied to it.

   Clients SHOULD be prepared to handle multiple tracks of a particular
   type (e.g. audio or video).  A client with no other preference SHOULD
   choose the track with the lowest numerical PID that it can play.

   Clients MUST ignore private streams inside Transport Streams that
   they do not recognize.

   The encoding parameters for samples in a stream inside a media
   segment and between corresponding streams across multiple media
   segments SHOULD remain consistent.  However clients SHOULD deal with
   encoding changes as they are encountered, for example by scaling
   video content to accommodate a resolution change.

   Subtitle segments MUST be formatted as WebVTT [<a href="#ref-WebVTT" title="&quot;WebVTT Standard&quot;">WebVTT</a>] files.  Each
   subtitle segment MUST contain all subtitle cues that are intended to
   be displayed during the period indicated by the segment EXTINF
   duration.  The start time offset and end time offset of each cue MUST
   indicate the total display time for that cue, even if that time range
   extends beyond the EXTINF duration.  A WebVTT segment MAY contain no
   cues; this indicates that no subtitles are to be displayed during
   that period.

   Each WebVTT segment MUST have an X-TIMESTAMP-MAP metadata header.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 19]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-20" id="page-20" href="#page-20" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   This header synchronizes the cue timestamps in the WebVTT file with
   the MPEG-2 (PES) timestamps in other streams.  Its format is:

   X-TIMESTAMP-MAP=LOCAL:&lt;cue time&gt;,MPEGTS:&lt;MPEG-2 time&gt;
   e.g. X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

   The cue timestamp in the LOCAL attribute MAY fall outside the range
   of time covered by the segment.


<span class="h2"><h2><a class="selflink" name="section-5" href="#section-5">5</a>.  Key files</h2></span>

<span class="h3"><h3><a class="selflink" name="section-5.1" href="#section-5.1">5.1</a>.  Introduction</h3></span>

   An EXT-X-KEY tag with a URI attribute identifies a Key file.  A Key
   file contains the cipher key that MUST be used to decrypt subsequent
   media segments in the Playlist.

   [<a name="ref-AES_128" id="ref-AES_128">AES_128</a>] encryption uses 16-octet keys.  If the KEYFORMAT of an EXT-
   X-KEY tag is "identity", the Key file is a single packed array of 16
   octets in binary format.

<span class="h3"><h3><a class="selflink" name="section-5.2" href="#section-5.2">5.2</a>.  IV for [<a href="#ref-AES_128" title="&quot;Advanced Encryption Standard (AES), FIPS PUB 197&quot;">AES_128</a>]</h3></span>

   [<a name="ref-AES_128" id="ref-AES_128">AES_128</a>] requires the same 16-octet Initialization Vector (IV) to be
   supplied when encrypting and decrypting.  Varying this IV increases
   the strength of the cipher.

   If an EXT-X-KEY tag has a KEYFORMAT of "identity" and an IV attribute
   is present, implementations MUST use the attribute value as the IV
   when encrypting or decrypting with that key.  The value MUST be
   interpreted as a 128-bit number.

   If an EXT-X-KEY tag with a KEYFORMAT of "identity" does not have the
   IV attribute, implementations MUST use the sequence number of the
   media segment as the IV when encrypting or decrypting that media
   segment.  The big-endian binary representation of the sequence number
   SHALL be placed in a 16-octet buffer and padded (on the left) with
   zeros.


<span class="h2"><h2><a class="selflink" name="section-6" href="#section-6">6</a>.  Client/Server Actions</h2></span>

<span class="h3"><h3><a class="selflink" name="section-6.1" href="#section-6.1">6.1</a>.  Introduction</h3></span>

   This section describes how the server generates the Playlist and
   media segments and how the client should download and play them.




<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 20]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-21" id="page-21" href="#page-21" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h3"><h3><a class="selflink" name="section-6.2" href="#section-6.2">6.2</a>.  Server Process</h3></span>

<span class="h4"><h4><a class="selflink" name="section-6.2.1" href="#section-6.2.1">6.2.1</a>.  Introduction</h4></span>

   The production of the media stream is outside the scope of this
   document, which simply presumes a source of a continuous stream
   containing the presentation.

   The server MUST divide the stream into individual media segments
   whose duration is less than or equal to a constant target duration.
   The server SHOULD attempt to divide the stream at points that support
   effective decode of individual media segments, e.g. on packet and key
   frame boundaries.

   The server MUST create a URI for every media segment that enables its
   clients to obtain the segment data.  If a server supports partial
   loading of resources (e.g. via HTTP Range requests), it MAY specify
   segments as sub-ranges of larger resources using the EXT-X-BYTERANGE
   tag.

   If WebVTT segments are distributed by HTTP, the server SHOULD support
   client requests to use the "gzip" Content-Encoding.

   The server MUST create a Playlist file.  The Playlist file MUST
   conform to the format described in <a href="#section-3">Section 3</a>.  A URI for each media
   segment that the server wishes to make available MUST appear in the
   Playlist in the order in which it is to be played.  The entire media
   segment MUST be available to clients if its URI is in the Playlist
   file.

   The Playlist file MUST contain an EXT-X-TARGETDURATION tag.  Its
   value MUST be equal to or greater than the EXTINF value of any media
   segment that appears or will appear in the Playlist file.  Its value
   MUST NOT change.  A typical target duration is 10 seconds.

   The Playlist file SHOULD contain one EXT-X-VERSION tag which
   indicates the compatibility version of the stream.  Its value MUST be
   the lowest protocol version with which the server, Playlist file, and
   associated media segments all comply.  Its value MUST NOT change.

   The server MUST create a URI for the Playlist file that will allow
   its clients to obtain the file.

   If the Playlist file is distributed by HTTP, the server SHOULD
   support client requests to use "gzip" Content-Encoding.

   Changes to the Playlist file MUST be made atomically from the point
   of view of the clients.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 21]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-22" id="page-22" href="#page-22" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   The server MUST NOT change the Playlist file, except to:

      Append lines to it (<a href="#section-6.2.1">Section 6.2.1</a>).

      Remove media segment URIs from the Playlist in the order that they
      appear, along with any tags that apply only to those segments
      (<a href="#section-6.2.2">Section 6.2.2</a>).

      Increment the value of the EXT-X-MEDIA-SEQUENCE tag
      (<a href="#section-6.2.2">Section 6.2.2</a>).

      Add or remove EXT-X-STREAM-INF tags or EXT-X-I-FRAME-STREAM-INF
      tags (<a href="#section-6.2.4">Section 6.2.4</a>).  Note that clients are not required to
      reload variant Playlist files, so changing them may not have
      immediate effect.

      Add an EXT-X-ENDLIST tag to the Playlist (<a href="#section-6.2.1">Section 6.2.1</a>).

   Furthermore, the Playlist file MAY contain an EXT-X-PLAYLIST-TYPE tag
   with a value of either EVENT or VOD.  If the tag is present and has a
   value of EVENT, the server MUST NOT change or delete any part of the
   Playlist file (although it MAY append lines to it).  If the tag is
   present and has a value of VOD, the Playlist file MUST NOT change.

   Every media segment in a Playlist MUST have an EXTINF tag applied to
   it indicating the duration of the media segment.

   The server MAY associate an absolute date and time with a media
   segment by applying an EXT-X-PROGRAM-DATE-TIME tag to the segment.
   The date and time value provides an informative mapping of the
   timeline of the media to an appropriate wall-clock time, which may be
   used as a basis for seeking, for display, or for other purposes.  If
   a server provides this mapping, it SHOULD apply an EXT-X-PROGRAM-
   DATE-TIME tag to every segment that has an EXT-X-DISCONTINUITY tag
   applied to it.

   If the Playlist contains the final media segment of the presentation
   then the Playlist file MUST contain the EXT-X-ENDLIST tag.

   If the Playlist does not contain the EXT-X-ENDLIST tag, the server
   MUST make a new version of the Playlist file available that contains
   at least one new media segment.  It MUST be made available relative
   to the time that the previous version of the Playlist file was made
   available: no earlier than one-half the target duration after that
   time, and no later than 1.5 times the target duration after that
   time.

   If the server wishes to remove an entire presentation, it MUST make



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 22]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-23" id="page-23" href="#page-23" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   the Playlist file unavailable to clients.  It SHOULD ensure that all
   media segments in the Playlist file remain available to clients for
   at least the duration of the Playlist file at the time of removal.

<span class="h4"><h4><a class="selflink" name="section-6.2.2" href="#section-6.2.2">6.2.2</a>.  Sliding Window Playlists</h4></span>

   The server MAY limit the availability of media segments by removing
   media segments from the Playlist file (<a href="#section-6.2.1">Section 6.2.1</a>).  If media
   segments are to be removed, the Playlist file MUST contain exactly
   one EXT-X-MEDIA-SEQUENCE tag.  Its value MUST be incremented by 1 for
   every media segment that is removed from the Playlist file.

   Media segments MUST be removed from the Playlist file in the order
   that they appear in the Playlist.

   The server MUST NOT remove a media segment from the Playlist file if
   the duration of the Playlist file minus the duration of the segment
   is less than three times the target duration.

   When the server removes a media segment from the Playlist, the
   corresponding media URI SHOULD remain available to clients for a
   period of time equal to the duration of the segment plus the duration
   of the longest Playlist file distributed by the server containing
   that segment.

   If a server plans to remove a media segment after it is delivered to
   clients over HTTP, it SHOULD ensure that the HTTP response contains
   an Expires header that reflects the planned time-to-live.

<span class="h4"><h4><a class="selflink" name="section-6.2.3" href="#section-6.2.3">6.2.3</a>.  Encrypting media segments</h4></span>

   If media segments are to be encrypted the server MUST define a URI
   which will allow authorized clients to obtain a Key file containing a
   decryption key.  The Key file MUST conform to the format described in
   <a href="#section-5">Section 5</a>.

   The server MAY set the HTTP Expires header in the key response to
   indicate that the key may be cached.

   The server MUST encrypt every media segment in a Playlist according
   to the EXT-X-KEY tag that applies to its URI in the Playlist file.
   Media segments with an EXT-X-KEY tag whose METHOD is NONE, or which
   do not have an EXT-X-KEY tag applied to them, MUST NOT be encrypted.

   If the encryption METHOD is AES-128 and the Playlist does not contain
   the EXT-X-I-FRAMES-ONLY tag, AES-128 CBC encryption with PKCS7
   padding [<a href="http://tools.ietf.org/html/rfc5652" title="&quot;Cryptographic Message Syntax (CMS)&quot;">RFC5652</a>] SHALL be applied to individual media segments.  The
   entire segment MUST be encrypted.  Cipher Block Chaining MUST NOT be



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 23]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-24" id="page-24" href="#page-24" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   applied across media segments.  The IV used for encryption MUST be
   either the sequence number of the media segment or the value of the
   IV attribute of the EXT-X-KEY tag, as described in <a href="#section-5.2">Section 5.2</a>.

   If the encryption METHOD is AES-128 and the Playlist contains an EXT-
   X-I-FRAMES-ONLY tag, AES-128 CBC encryption with PKCS7 padding
   [<a href="http://tools.ietf.org/html/rfc5652" title="&quot;Cryptographic Message Syntax (CMS)&quot;">RFC5652</a>] MUST be applied to the entire resource.  The entire
   resource MUST be encrypted.  Encryption MAY be restarted on 16-byte
   block boundaries, unless the first block contains an I-frame.  The IV
   used for encryption MUST be either the sequence number of the media
   segment or the value of the IV attribute of the EXT-X-KEY tag, as
   described in <a href="#section-5.2">Section 5.2</a>.

   If the encryption METHOD is SAMPLE-AES, certain elementary streams
   MAY be encrypted prior to encapsulation in a media segment.  The
   encryption format for H.264, AAC and AC-3 elementary streams is
   described by [<a href="#ref-SampleEnc">SampleEnc</a>].

   The server MUST NOT remove an EXT-X-KEY tag from the Playlist file if
   it applies to any media segment in the Playlist file.

<span class="h4"><h4><a class="selflink" name="section-6.2.4" href="#section-6.2.4">6.2.4</a>.  Providing variant streams</h4></span>

   A server MAY offer multiple Playlist files to provide different
   encodings of the same presentation.  If it does so it SHOULD provide
   a variant Playlist file that lists each variant stream to allow
   clients to switch between encodings dynamically.

   Variant Playlists MUST contain an EXT-X-STREAM-INF tag or EXT-X-I-
   FRAME-STREAM-INF tag for each variant stream.  Each tag identifying
   an encoding of the same presentation MUST have the same PROGRAM-ID
   attribute value.  The PROGRAM-ID value for each presentation MUST be
   unique within the variant Playlist.

   If an EXT-X-STREAM-INF tag or EXT-X-I-FRAME-STREAM-INF tag contains
   the CODECS attribute, the attribute value MUST include every format
   defined by [<a href="http://tools.ietf.org/html/rfc6381" title="&quot;The 'Codecs' and 'Profiles' Parameters for &quot;">RFC6381</a>] that is present in any media segment that
   appears or will appear in the Playlist file.

   The server MUST meet the following constraints when producing variant
   streams:

      Each variant stream MUST present the same content, including
      stream discontinuities.

      Each variant Playlist file MUST have the same target duration.
      The only exception is that SUBTITLES renditions with a EXT-X-
      PLAYLIST-TYPE of VOD MAY have longer target durations.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 24]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-25" id="page-25" href="#page-25" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


      Content that appears in one variant Playlist file but not in
      another MUST appear either at the beginning or at the end of the
      Playlist file and MUST NOT be longer than the target duration.

      Matching content in variant streams MUST have matching timestamps.
      This allows clients to synchronize the streams.

      Each Elementary Audio Stream segment MUST signal the timestamp of
      its first sample with an ID3 PRIV tag [<a href="#ref-ID3" title="&quot;The ID3 audio file data tagging format&quot;">ID3</a>] at the beginning of
      the segment.  The ID3 PRIV owner identifier MUST be
      "com.apple.streaming.transportStreamTimestamp".  The ID3 payload
      MUST be a 33-bit MPEG-2 Program Elementary Stream timestamp
      expressed as a big-endian eight-octet number, with the upper 31
      bits set to zero.

   In addition, all variant streams SHOULD contain the same encoded
   audio bitstream.  This allows clients to switch between streams
   without audible glitching.

   The rules for variant streams also apply to alternate renditions -
   see <a href="#section-3.4.10.1">Section 3.4.10.1</a>.

<span class="h3"><h3><a class="selflink" name="section-6.3" href="#section-6.3">6.3</a>.  Client Process</h3></span>

<span class="h4"><h4><a class="selflink" name="section-6.3.1" href="#section-6.3.1">6.3.1</a>.  Introduction</h4></span>

   How the client obtains the URI to the Playlist file is outside the
   scope of this document; it is presumed to have done so.

   The client MUST obtain the Playlist file from the URI.  If the
   Playlist file so obtained is a variant Playlist, the client MUST
   obtain the Playlist file from the variant Playlist.

   This document does not specify the treatment of variant streams by
   clients.

<span class="h4"><h4><a class="selflink" name="section-6.3.2" href="#section-6.3.2">6.3.2</a>.  Loading the Playlist file</h4></span>

   Every time a Playlist file is loaded or reloaded from the Playlist
   URI:

      The client MUST ensure that the Playlist file begins with the
      EXTM3U tag and that the EXT-X-VERSION tag, if present, specifies a
      protocol version supported by the client; if not, the client MUST
      NOT attempt to use the Playlist.

      The client SHOULD ignore any tags and attributes it does not
      recognize.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 25]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-26" id="page-26" href="#page-26" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


      The client MUST determine the next media segment to load, as
      described in <a href="#section-6.3.5">Section 6.3.5</a>.

   If the Playlist contains the EXT-X-MEDIA-SEQUENCE tag, the client
   SHOULD assume that each media segment in it will become unavailable
   at the time that the Playlist file was loaded plus the duration of
   the Playlist file.

<span class="h4"><h4><a class="selflink" name="section-6.3.3" href="#section-6.3.3">6.3.3</a>.  Playing the Playlist file</h4></span>

   The client SHALL choose which media segment to play first from the
   Playlist when playback starts.  If the EXT-X-ENDLIST tag is not
   present and the client intends to play the media regularly (i.e. in
   playlist order at the nominal playback rate), the client SHOULD NOT
   choose a segment which starts less than three target durations from
   the end of the Playlist file.  Doing so can trigger playback stalls.

   To achieve regular playback, media segments MUST be played in the
   order that they appear in the Playlist file.  The client MAY present
   the available media in any way it wishes, including regular playback,
   random access, and trick modes.

   The client MUST be prepared to reset its parser(s) and decoder(s)
   before playing a media segment that has an EXT-X-DISCONTINUITY tag
   applied to it.

   The client SHOULD attempt to load media segments in advance of when
   they will be required for uninterrupted playback to compensate for
   temporary variations in latency and throughput.

   If the Playlist file contains the EXT-X-ALLOW-CACHE tag and its value
   is NO, the client MUST NOT cache downloaded media segments after they
   have been played.  Otherwise the client MAY cache downloaded media
   segments indefinitely for later replay.

   The client MAY use the value of the EXT-X-PROGRAM-DATE-TIME tag to
   display the program origination time to the user.  If the value
   includes time zone information the client SHALL take it into account,
   but if it does not the client MUST NOT infer an originating time
   zone.

   The client MUST NOT depend upon the correctness or the consistency of
   the value of the EXT-X-PROGRAM-DATE-TIME tag.

<span class="h4"><h4><a class="selflink" name="section-6.3.4" href="#section-6.3.4">6.3.4</a>.  Reloading the Playlist file</h4></span>

   The client MUST periodically reload the Playlist file unless it
   contains the EXT-X-ENDLIST tag.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 26]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-27" id="page-27" href="#page-27" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   However the client MUST NOT attempt to reload the Playlist file more
   frequently than specified by this section.

   When a client loads a Playlist file for the first time or reloads a
   Playlist file and finds that it has changed since the last time it
   was loaded, the client MUST wait for a period of time before
   attempting to reload the Playlist file again.  This period is called
   the initial minimum reload delay.  It is measured from the time that
   the client began loading the Playlist file.

   The initial minimum reload delay is the duration of the last media
   segment in the Playlist.  Media segment duration is specified by the
   EXTINF tag.

   If the client reloads a Playlist file and finds that it has not
   changed then it MUST wait for a period of one-half the target
   duration before retrying.

   In order to reduce server load, the client SHOULD NOT reload the
   Playlist files of variant streams that are not currently being
   played.  If it decides to switch playback to a different variant, it
   SHOULD stop reloading the Playlist of the old variant and begin
   loading the Playlist of the new variant.  It can use the EXTINF
   durations and the constraints in <a href="#section-6.2.4">Section 6.2.4</a> to determine the
   approximate location of corresponding media.  Once media from the new
   variant has been loaded, the timestamps in the media segments can be
   used to synchronize the old and new timelines precisely.  A client
   MUST NOT assume that segments with the same media sequence number in
   different variants or renditions contain matching content.

<span class="h4"><h4><a class="selflink" name="section-6.3.5" href="#section-6.3.5">6.3.5</a>.  Determining the next segment to load</h4></span>

   The client MUST examine the Playlist file every time it is loaded or
   reloaded to determine the next media segment to load.

   The first segment to load MUST be the segment that the client has
   chosen to play first, as described in <a href="#section-6.3.3">Section 6.3.3</a>.

   If the first segment to be played has been loaded and the Playlist
   file does not contain the EXT-X-MEDIA-SEQUENCE tag then the client
   MUST verify that the current Playlist file contains the URI of the
   last loaded media segment at the offset it was originally found at,
   halting playback if it does not.  The next media segment to load MUST
   be the first media segment following the last-loaded segment in the
   Playlist.

   If the first segment to be played has been loaded and the Playlist
   file contains the EXT-X-MEDIA-SEQUENCE tag then the next media



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 27]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-28" id="page-28" href="#page-28" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   segment to load SHALL be the one with the lowest sequence number that
   is greater than the sequence number of the last media segment loaded.

<span class="h4"><h4><a class="selflink" name="section-6.3.6" href="#section-6.3.6">6.3.6</a>.  Decrypting encrypted media segments</h4></span>

   If a Playlist file contains an EXT-X-KEY tag that specifies a Key
   file URI, the client MUST obtain that key file and use the key inside
   it to decrypt all media segments to which that EXT-X-KEY tag applies.

   A client MUST NOT attempt to use an EXT-X-KEY tag with an unsupported
   or unrecognized KEYFORMAT attribute.  A client SHOULD fail playback
   if the Playlist contains a media segment to which only EXT-X-KEY tags
   with unrecognized or unsupported KEYFORMAT attributes are applied.

   If the encryption METHOD is AES-128, AES-128 CBC decryption SHALL be
   applied to individual media segments.  The entire segment MUST be
   decrypted.  Cipher Block Chaining MUST NOT be applied across media
   segments.  The IV used for decryption MUST be either the sequence
   number of the media segment or the value of the IV attribute of the
   EXT-X-KEY tag, as described in <a href="#section-5.2">Section 5.2</a>.

   If the encryption METHOD is AES-128 and the media segment is part of
   an I-frame playlist (<a href="#section-3.4.12">Section 3.4.12</a>) special care MUST be taken in
   loading and decrypting the segment, because the resource identified
   by the URI is encrypted in 16-byte blocks from the start of the
   resource (offset 0).  The sub-range specified by the EXT-X-BYTERANGE
   tag MUST be widened to include the 16-byte blocks in which the
   beginning and end of the sub-range fall.  Next, it MUST be widened
   further to include the previous 16-byte block.  That range MUST be
   loaded and decrypted with AES-128 CBC using an arbitrary IV.  The
   decrypted segment will then be in the original (unwidened) sub-range.

   If the encryption METHOD is SAMPLE-AES, AES-128 decryption SHALL be
   applied to encrypted elementary streams within the media segment.
   The encryption format for H.264, AAC and AC-3 elementary streams is
   described by [<a href="#ref-SampleEnc">SampleEnc</a>].

   An EXT-X-KEY tag with a METHOD of NONE indicates that the media
   segments it applies to are not encrypted.


<span class="h2"><h2><a class="selflink" name="section-7" href="#section-7">7</a>.  Protocol version compatibility</h2></span>

   Clients and servers MUST implement protocol version 2 or higher to
   use:

   o  The IV attribute of the EXT-X-KEY tag.




<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 28]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-29" id="page-29" href="#page-29" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   Clients and servers MUST implement protocol version 3 or higher to
   use:

   o  Floating-point EXTINF duration values.

   Clients and servers MUST implement protocol version 4 or higher to
   use:

   o  The EXT-X-BYTERANGE tag.

   o  The EXT-X-I-FRAME-STREAM-INF tag.

   o  The EXT-X-I-FRAMES-ONLY tag.

   o  The EXT-X-MEDIA tag.

   o  The AUDIO and VIDEO attributes of the EXT-X-STREAM-INF tag.

   Clients and servers MUST implement protocol version 5 or higher to
   use:

   o  The KEYFORMAT and KEYFORMATVERSIONS attributes of the EXT-X-KEY
      tag.

   o  The EXT-X-MAP tag.


<span class="h2"><h2><a class="selflink" name="section-8" href="#section-8">8</a>.  Examples</h2></span>

<span class="h3"><h3><a class="selflink" name="section-8.1" href="#section-8.1">8.1</a>.  Introduction</h3></span>

   This section contains several example Playlist files.

<span class="h3"><h3><a class="selflink" name="section-8.2" href="#section-8.2">8.2</a>.  Simple Playlist file</h3></span>

   #EXTM3U
   #EXT-X-VERSION:3
   #EXT-X-TARGETDURATION:5220
   #EXTINF:5219.2,
   http://media.example.com/entire.ts
   #EXT-X-ENDLIST










<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 29]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-30" id="page-30" href="#page-30" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h3"><h3><a class="selflink" name="section-8.3" href="#section-8.3">8.3</a>.  Sliding Window Playlist, using HTTPS</h3></span>

   #EXTM3U
   #EXT-X-VERSION:3
   #EXT-X-TARGETDURATION:8
   #EXT-X-MEDIA-SEQUENCE:2680

   #EXTINF:7.975,
   https://priv.example.com/fileSequence2680.ts
   #EXTINF:7.941,
   https://priv.example.com/fileSequence2681.ts
   #EXTINF:7.975,
   https://priv.example.com/fileSequence2682.ts

<span class="h3"><h3><a class="selflink" name="section-8.4" href="#section-8.4">8.4</a>.  Playlist file with encrypted media segments</h3></span>

   #EXTM3U
   #EXT-X-VERSION:3
   #EXT-X-MEDIA-SEQUENCE:7794
   #EXT-X-TARGETDURATION:15

   #EXT-X-KEY:METHOD=AES-128,URI="https://priv.example.com/key.php?r=52"

   #EXTINF:2.833,
   http://media.example.com/fileSequence52-A.ts
   #EXTINF:15.0,
   http://media.example.com/fileSequence52-B.ts
   #EXTINF:13.333,
   http://media.example.com/fileSequence52-C.ts

   #EXT-X-KEY:METHOD=AES-128,URI="https://priv.example.com/key.php?r=53"

   #EXTINF:15.0,
   http://media.example.com/fileSequence53-A.ts

<span class="h3"><h3><a class="selflink" name="section-8.5" href="#section-8.5">8.5</a>.  Variant Playlist file</h3></span>

   #EXTM3U
   #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1280000
   http://example.com/low.m3u8
   #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2560000
   http://example.com/mid.m3u8
   #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=7680000
   http://example.com/hi.m3u8
   #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=65000,CODECS="mp4a.40.5"
   http://example.com/audio-only.m3u8





<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 30]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-31" id="page-31" href="#page-31" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


<span class="h3"><h3><a class="selflink" name="section-8.6" href="#section-8.6">8.6</a>.  Variant Playlist with I-Frames</h3></span>

   In this example, the PROGRAM-ID attributes have been left out:

   #EXTM3U
   #EXT-X-STREAM-INF:BANDWIDTH=1280000
   low/audio-video.m3u8
   #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=86000,URI="low/iframe.m3u8"
   #EXT-X-STREAM-INF:BANDWIDTH=2560000
   mid/audio-video.m3u8
   #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=150000,URI="mid/iframe.m3u8"
   #EXT-X-STREAM-INF:BANDWIDTH=7680000
   hi/audio-video.m3u8
   #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=550000,URI="hi/iframe.m3u8"
   #EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS="mp4a.40.5"
   audio-only.m3u8

<span class="h3"><h3><a class="selflink" name="section-8.7" href="#section-8.7">8.7</a>.  Variant Playlist with Alternative audio</h3></span>

   In this example, the PROGRAM-ID attributes have been left out.  The
   CODECS attributes have been condensed for space.  A '\' is used to
   indicate that the tag continues on the following line with whitespace
   removed:

   #EXTM3U
   #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English", \
      DEFAULT=YES,AUTOSELECT=YES,LANGUAGE="en", \
      URI="main/english-audio.m3u8"
   #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Deutsche", \
      DEFAULT=NO,AUTOSELECT=YES,LANGUAGE="de", \
      URI="main/german-audio.m3u8"
   #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Commentary", \
      DEFAULT=NO,AUTOSELECT=NO,URI="commentary/audio-only.m3u8"
   #EXT-X-STREAM-INF:BANDWIDTH=1280000,CODECS="...",AUDIO="aac"
   low/video-only.m3u8
   #EXT-X-STREAM-INF:BANDWIDTH=2560000,CODECS="...",AUDIO="aac"
   mid/video-only.m3u8
   #EXT-X-STREAM-INF:BANDWIDTH=7680000,CODECS="...",AUDIO="aac"
   hi/video-only.m3u8
   #EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS="mp4a.40.5",AUDIO="aac"
   main/english-audio.m3u8

<span class="h3"><h3><a class="selflink" name="section-8.8" href="#section-8.8">8.8</a>.  Variant Playlist with Alternative video</h3></span>

   In this example, the PROGRAM-ID attributes have been left out.  The
   CODECS attributes have been condensed for space.  A '\' is used to
   indicate that the tag continues on the following line with whitespace
   removed:



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 31]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-32" id="page-32" href="#page-32" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   #EXTM3U
   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="low",NAME="Main", \
      DEFAULT=YES,URI="low/main/audio-video.m3u8"
   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="low",NAME="Centerfield", \
      DEFAULT=NO,URI="low/centerfield/audio-video.m3u8"
   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="low",NAME="Dugout", \
      DEFAULT=NO,URI="low/dugout/audio-video.m3u8"

   #EXT-X-STREAM-INF:BANDWIDTH=1280000,CODECS="...",VIDEO="low"
   low/main/audio-video.m3u8

   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="mid",NAME="Main", \
      DEFAULT=YES,URI="mid/main/audio-video.m3u8"
   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="mid",NAME="Centerfield", \
      DEFAULT=NO,URI="mid/centerfield/audio-video.m3u8"
   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="mid",NAME="Dugout", \
      DEFAULT=NO,URI="mid/dugout/audio-video.m3u8"

   #EXT-X-STREAM-INF:BANDWIDTH=2560000,CODECS="...",VIDEO="mid"
   mid/main/audio-video.m3u8

   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="hi",NAME="Main", \
      DEFAULT=YES,URI="hi/main/audio-video.m3u8"
   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="hi",NAME="Centerfield", \
      DEFAULT=NO,URI="hi/centerfield/audio-video.m3u8"
   #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="hi",NAME="Dugout", \
      DEFAULT=NO,URI="hi/dugout/audio-video.m3u8"

   #EXT-X-STREAM-INF:BANDWIDTH=7680000,CODECS="...",VIDEO="hi"
   hi/main/audio-video.m3u8

   #EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS="mp4a.40.5"
   main/audio-only.m3u8


<span class="h2"><h2><a class="selflink" name="section-9" href="#section-9">9</a>.  Contributors</h2></span>

   Significant contributions to the design of this protocol were made by
   Jim Batson, David Biderman, Bill May, Roger Pantos, and Alan Tseng.


<span class="h2"><h2><a class="selflink" name="section-10" href="#section-10">10</a>.  IANA Considerations</h2></span>

   This memo requests that the following MIME type [<a href="http://tools.ietf.org/html/rfc2046" title="&quot;Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types&quot;">RFC2046</a>] be
   registered with the IANA:

   Type name: "application"




<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 32]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-33" id="page-33" href="#page-33" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   Subtype name: "vnd.apple.mpegurl"

   Required parameters: (none)

   Optional parameters: (none)

   Encoding considerations: encoded as text.  See <a href="#section-3">Section 3</a> for more
   information.

   Security considerations: See <a href="#section-11">Section 11</a>.

   Compression: this media type does not employ compression.

   Interoperability considerations: There are no byte-ordering issues,
   since files are 7- or 8-bit text.  Applications could encounter
   unrecognized tags, which SHOULD be ignored.

   Published specification: see <a href="#section-3">Section 3</a>.

   Applications that use this media type: Multimedia applications such
   as the iPhone media player in iOS 3.0 and later and QuickTime Player
   in Mac OS X version 10.6 and later.

   Additional information: files begin with the magic number #EXTM3U.
   Filenames normally end with .m3u8 or .m3u (see <a href="#section-3">Section 3</a>).  No
   Macintosh file type codes have been registered.

   Person &amp; email address to contact for further information: David
   Singer, singer AT apple.com.

   Intended usage: LIMITED USE

   Restrictions on usage: (none)

   Author: Roger Pantos

   Change Controller: David Singer


<span class="h2"><h2><a class="selflink" name="section-11" href="#section-11">11</a>.  Security Considerations</h2></span>

   Since the protocol generally uses HTTP to transfer data, most of the
   same security considerations apply.  See <a href="http://tools.ietf.org/html/rfc2616#section-15">section&nbsp;15 of RFC 2616</a>
   [<a href="http://tools.ietf.org/html/rfc2616" title="&quot;Hypertext Transfer Protocol -- HTTP/1.1&quot;">RFC2616</a>].

   Media file parsers are typically subject to "fuzzing" attacks.
   Clients SHOULD take care when parsing segments received from a server
   that non-compliant segments are rejected.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 33]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-34" id="page-34" href="#page-34" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   Playlist files contain URIs, which clients will use to make network
   requests of arbitrary entities.  Clients SHOULD range-check responses
   to prevent buffer overflows.  See also the Security Considerations
   section of <a href="http://tools.ietf.org/html/rfc3986">RFC 3986</a> [<a href="http://tools.ietf.org/html/rfc3986" title="&quot;Uniform Resource Identifier (URI): Generic Syntax&quot;">RFC3986</a>].

   Clients SHOULD load resources identified by URI lazily to avoid
   contributing to denial-of-service attacks.

   HTTP requests often include session state ("cookies"), which may
   contain private user data.  Implementations MUST follow cookie
   restriction and expiry rules specified by <a href="http://tools.ietf.org/html/rfc6265">RFC 6265</a> [<a href="http://tools.ietf.org/html/rfc6265" title="&quot;HTTP State Management Mechanism&quot;">RFC6265</a>].  See
   also the Security Considerations section of <a href="http://tools.ietf.org/html/rfc6265">RFC 6265</a>, and <a href="http://tools.ietf.org/html/rfc2964">RFC 2964</a>
   [<a href="http://tools.ietf.org/html/rfc2964" title="&quot;Use of HTTP State Management&quot;">RFC2964</a>].

   Encryption keys are specified by URI.  The delivery of these keys
   SHOULD be secured by a mechanism such as HTTP over TLS [<a href="http://tools.ietf.org/html/rfc5246" title="&quot;The Transport Layer Security (TLS) Protocol Version 1.2&quot;">RFC5246</a>]
   (formerly SSL) in conjunction with a secure realm or a session
   cookie.


<span class="h2"><h2><a class="selflink" name="section-12" href="#section-12">12</a>.  References</h2></span>

<span class="h3"><h3><a class="selflink" name="section-12.1" href="#section-12.1">12.1</a>.  Normative References</h3></span>

   [<a name="ref-AC_3" id="ref-AC_3">AC_3</a>]     Advanced Television Systems Committee, "ATSC Standard:
              A/52:2010: Digital Audio Compression (AC-3) (E-AC-3)
              Standard", November 2010,
              &lt;<a href="http://www.atsc.org/cms/standards/a_52-2010.pdf">http://www.atsc.org/cms/standards/a_52-2010.pdf</a>&gt;.

   [<a name="ref-AES_128" id="ref-AES_128">AES_128</a>]  U.S. Department of Commerce/National Institute of
              Standards and Technology, "Advanced Encryption Standard
              (AES), FIPS PUB 197", November 2001, &lt;<a href="http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf">http://</a>
              <a href="http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf">csrc.nist.gov/publications/fips/fips197/fips-197.pdf</a>&gt;.

   [<a name="ref-H_264" id="ref-H_264">H_264</a>]    International Telecommunications Union, "Advanced video
              coding for generic audiovisual services", January 2012,
              &lt;<a href="http://www.itu.int/rec/T-REC-H.264">http://www.itu.int/rec/T-REC-H.264</a>&gt;.

   [<a name="ref-ISO_11172" id="ref-ISO_11172">ISO_11172</a>]
              International Organization for Standardization, "ISO/IEC
              International Standard 11172-1; Coding of moving pictures
              and associated audio for digital storage media -- Part 1:
              Systems", 1993,
              &lt;<a href="http://www.iso.org/iso/catalogue_detail?csnumber=19180">http://www.iso.org/iso/catalogue_detail?csnumber=19180</a>&gt;.

   [<a name="ref-ISO_13818" id="ref-ISO_13818">ISO_13818</a>]
              International Organization for Standardization, "ISO/IEC
              International Standard 13818; Generic coding of moving



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 34]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-35" id="page-35" href="#page-35" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


              pictures and associated audio information", October 2007,
              &lt;<a href="http://www.iso.org/iso/catalogue_detail?csnumber=44169">http://www.iso.org/iso/catalogue_detail?csnumber=44169</a>&gt;.

   [<a name="ref-ISO_14496" id="ref-ISO_14496">ISO_14496</a>]
              International Organization for Standardization, "ISO/IEC
              14496-3:2009 Information technology -- Coding of audio-
              visual objects -- Part 3: Audio", 2009,
              &lt;<a href="http://www.iso.org/iso/catalogue_detail?csnumber=53943">http://www.iso.org/iso/catalogue_detail?csnumber=53943</a>&gt;.

   [<a name="ref-ISO_8601" id="ref-ISO_8601">ISO_8601</a>]
              International Organization for Standardization, "ISO/IEC
              International Standard 8601:2004; Data elements and
              interchange formats -- Information interchange --
              Representation of dates and times", December 2004,
              &lt;<a href="http://www.iso.org/iso/catalogue_detail?csnumber=40874">http://www.iso.org/iso/catalogue_detail?csnumber=40874</a>&gt;.

   [<a name="ref-RFC2046" id="ref-RFC2046">RFC2046</a>]  Freed, N. and N. Borenstein, "Multipurpose Internet Mail
              Extensions (MIME) Part Two: Media Types", <a href="http://tools.ietf.org/html/rfc2046">RFC 2046</a>,
              November 1996.

   [<a name="ref-RFC2119" id="ref-RFC2119">RFC2119</a>]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", <a href="http://tools.ietf.org/html/bcp14">BCP 14</a>, <a href="http://tools.ietf.org/html/rfc2119">RFC 2119</a>, March 1997.

   [<a name="ref-RFC2616" id="ref-RFC2616">RFC2616</a>]  Fielding, R., Gettys, J., Mogul, J., Frystyk, H.,
              Masinter, L., Leach, P., and T. Berners-Lee, "Hypertext
              Transfer Protocol -- HTTP/1.1", <a href="http://tools.ietf.org/html/rfc2616">RFC 2616</a>, June 1999.

   [<a name="ref-RFC2964" id="ref-RFC2964">RFC2964</a>]  Moore, K. and N. Freed, "Use of HTTP State Management",
              <a href="http://tools.ietf.org/html/bcp44">BCP 44</a>, <a href="http://tools.ietf.org/html/rfc2964">RFC 2964</a>, October 2000.

   [<a name="ref-RFC3629" id="ref-RFC3629">RFC3629</a>]  Yergeau, F., "UTF-8, a transformation format of ISO
              10646", STD 63, <a href="http://tools.ietf.org/html/rfc3629">RFC 3629</a>, November 2003.

   [<a name="ref-RFC3986" id="ref-RFC3986">RFC3986</a>]  Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
              Resource Identifier (URI): Generic Syntax", STD 66,
              <a href="http://tools.ietf.org/html/rfc3986">RFC 3986</a>, January 2005.

   [<a name="ref-RFC5246" id="ref-RFC5246">RFC5246</a>]  Dierks, T. and E. Rescorla, "The Transport Layer Security
              (TLS) Protocol Version 1.2", <a href="http://tools.ietf.org/html/rfc5246">RFC 5246</a>, August 2008.

   [<a name="ref-RFC5646" id="ref-RFC5646">RFC5646</a>]  Phillips, A. and M. Davis, "Tags for Identifying
              Languages", <a href="http://tools.ietf.org/html/bcp47">BCP 47</a>, <a href="http://tools.ietf.org/html/rfc5646">RFC 5646</a>, September 2009.

   [<a name="ref-RFC5652" id="ref-RFC5652">RFC5652</a>]  Housley, R., "Cryptographic Message Syntax (CMS)", STD 70,
              <a href="http://tools.ietf.org/html/rfc5652">RFC 5652</a>, September 2009.

   [<a name="ref-RFC6265" id="ref-RFC6265">RFC6265</a>]  Barth, A., "HTTP State Management Mechanism", <a href="http://tools.ietf.org/html/rfc6265">RFC 6265</a>,
              April 2011.



<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 35]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-36" id="page-36" href="#page-36" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   [<a name="ref-RFC6381" id="ref-RFC6381">RFC6381</a>]  Gellens, R., Singer, D., and P. Frojdh, "The 'Codecs' and
              'Profiles' Parameters for "Bucket" Media Types", <a href="http://tools.ietf.org/html/rfc6381">RFC 6381</a>,
              August 2011.

   [<a name="ref-US_ASCII" id="ref-US_ASCII">US_ASCII</a>]
              American National Standards Institute, "ANSI X3.4-1986,
              Information Systems -- Coded Character Sets 7-Bit American
              National Standard Code for Information Interchange (7-Bit
              ASCII)", December 1986.

<span class="h3"><h3><a class="selflink" name="section-12.2" href="#section-12.2">12.2</a>.  Informative References</h3></span>

   [<a name="ref-ID3" id="ref-ID3">ID3</a>]      ID3.org, "The ID3 audio file data tagging format",
              &lt;<a href="http://www.id3.org/Developer_Information">http://www.id3.org/Developer_Information</a>&gt;.

   [<a name="ref-M3U" id="ref-M3U">M3U</a>]      Nullsoft, Inc., "The M3U Playlist format, originally
              invented for the Winamp media player",
              &lt;<a href="http://wikipedia.org/wiki/M3U">http://wikipedia.org/wiki/M3U</a>&gt;.

   [<a name="ref-SampleEnc" id="ref-SampleEnc">SampleEnc</a>]
              Apple Inc., "MPEG-2 Stream Encryption Format for HTTP Live
              Streaming", &lt;<a href="https://developer.apple.com/library/ios/">https://developer.apple.com/library/ios/</a>
              documentation/AudioVideo/Conceptual/
              HLS_Sample_Encryption/&gt;.

   [<a name="ref-UTI" id="ref-UTI">UTI</a>]      Apple Inc., "Uniform Type Identifier", &lt;http://
              developer.apple.com/library/ios/#documentation/general/
              conceptual/DevPedia-CocoaCore/UniformTypeIdentifier.html&gt;.

   [<a name="ref-WebVTT" id="ref-WebVTT">WebVTT</a>]   World Wide Web Consortium (W3C), "WebVTT Standard",
              September 2012, &lt;<a href="http://dev.w3.org/html5/webvtt/">http://dev.w3.org/html5/webvtt/</a>&gt;.


Authors' Addresses

   Roger Pantos (editor)
   Apple Inc.
   Cupertino, California
   United States

   Email: http-live-streaming-review@group.apple.com










<span class="grey">Pantos &amp; May             Expires April 18, 2013                [Page 36]</span>
</pre><!--NewPage--><pre class="newpage"><a name="page-37" id="page-37" href="#page-37" class="invisible"> </a>
<span class="grey">Internet-Draft             HTTP Live Streaming              October 2012</span>


   William May, Jr.
   Apple Inc.
   Cupertino, California
   United States

   Email: http-live-streaming-review@group.apple.com













































Pantos &amp; May             Expires April 18, 2013                [Page 37]

</pre><br>
<span class="noprint"><small><small>Html markup produced by rfcmarkup 1.101, available from
<a href="http://tools.ietf.org/tools/rfcmarkup/">http://tools.ietf.org/tools/rfcmarkup/</a>
</small></small></span>

</body></html>